package com.koro.service.impl;

import com.koro.dto.FindGoodsDTO;
import com.koro.feign.GoodsFeignClient;
import com.koro.service.GoodsService;
import com.koro.vo.FindGoodsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {

    @Autowired
    private GoodsFeignClient goodsFeignClient;

    @Override
    public List<FindGoodsVO> findAll(FindGoodsDTO dto) {
        return goodsFeignClient.findAll(dto).getData();
    }
}
